


export default  function () {
  const item_name  = "browse_data"
  return {
    scenic : [
      {
        title: `景区标题`,
        dataIndex: `${item_name}.scenic_title`,
        align: `center`,
      },
      {
        title: `其他内容`,
        dataIndex: `${item_name}.other_content`,
        align: `center`,
      },
      {
        title: `类型`,
        dataIndex: `${item_name}.type`,
        align: `center`,
        render :(text)=>{
          let newName = ``;

          switch (text){
            case  `around`:
              newName = "周边";
              break;
            case  `foreign`:
              newName = "国外";
              break;
            case  `inside`:
              newName = "国内";
              break;
          }
          return newName;
        }
      },
      {
        title : `地区`,
        dataIndex: `${item_name}.city_name`,
        align: `center`,
      },
      {
        title : `评论数量`,
        dataIndex: `${item_name}.assess_num`,
        align: `center`,
      },
      {
        title : `评分(星级)`,
        dataIndex: `${item_name}.score`,
        align: `center`,
      },
    ],
    traffic: [
      {
        title: `交通标题`,
        dataIndex: `${item_name}.traffic_title`,
        align: `center`,
        
      },
      /* {
         title: `其他内容`,
         dataIndex: `other_content`,
         align: `center`,
       },*/
      {
        title: `交通方式类型`,
        dataIndex: `${item_name}.traffic_type`,
        align: `center`,
        render :(text)=>{
          let newName = ``;

          switch (text){
            case  `airplane`:
              newName = "飞机";
              break;
            case  `train`:
              newName = "火车";
              break;
            case  `car`:
              newName = "汽车";
              break;
            case  `foreign`:
              newName = "国外";
              break;
            case  `inside`:
              newName = "国内";
              break;
          }
          return newName;
        }
      },
      {
        title: `所属区域类型`,
        dataIndex: `${item_name}.country_type`,
        align: `center`,
        render :(text)=>{
          let newName = ``;

          switch (text){
            case  `airplane`:
              newName = "飞机";
              break;
            case  `train`:
              newName = "火车";
              break;
            case  `car`:
              newName = "汽车";
              break;
            case  `foreign`:
              newName = "国外";
              break;
            case  `inside`:
              newName = "国内";
              break;
          }
          return newName;
        }
      },
    ],
    traffic_ship :[
      {
        title: `邮轮标题`,
        dataIndex: `${item_name}.traffic_ship_title`,
        align: `center`,
      },
      {
        title: `其他内容`,
        dataIndex: `${item_name}.other_content`,
        align: `center`,
      },
      {
        title: `类型`,
        dataIndex: `${item_name}.type`,
        align: `center`,
        render :(text)=>{
          let newName = ``;

          switch (text){
            case  `homeport`:
              newName = "母港";
              break;
            case  `foreign`:
              newName = "国外";
              break;
          }
          return newName;
        }
      },
      /* {
         title : `地区`,
         dataIndex: `city_name`,
         align: `center`,
       },*/
      {
        title : `时长`,
        dataIndex: `${item_name}.duration`,
        align: `center`,
      },
      {
        title : `评论数量`,
        dataIndex: `${item_name}.assess_num`,
        align: `center`,
      },
      {
        title : `评分`,
        dataIndex: `${item_name}.score`,
        align: `center`,
      },
    ],
    estate:[
      {
        title: `房产标题`,
        dataIndex: `${item_name}.estate_title`,
        align: `center`,
        
      },
      {
        title: `价格`,
        dataIndex: `${item_name}.price`,
        align: `center`,
      },
      {
        title: `类型`,
        dataIndex: `${item_name}.type`,
        align: `center`,
      },
    ],
    hotel:[
      {
        title: `酒店标题`,
        dataIndex: `${item_name}.hotel_title`,
        align: `center`,
      },
      {
        title: `其他内容`,
        dataIndex: `${item_name}.other_content`,
        align: `center`,
      },
      {
        title: `类型`,
        dataIndex: `${item_name}.type`,
        align: `center`,
        render :(text)=>{
          let newName = ``;

          switch (text){
            case  `around`:
              newName = "周边";
              break;
            case  `foreign`:
              newName = "国外";
              break;
            case  `inside`:
              newName = "国内";
              break;
          }
          return newName;
        }
      },
      {
        title : `地区`,
        dataIndex: `${item_name}.city_name`,
        align: `center`,
      },
      {
        title : `评论数量`,
        dataIndex: `${item_name}.assess_num`,
        align: `center`,
      },
      {
        title : `评分(星级)`,
        dataIndex: `${item_name}.score`,
        align: `center`,
      },
    ],
    travel_note:[
      {
        title: `游记标题`,
        dataIndex: `${item_name}.travel_note_title`,
        align: `center`,
      },
      {
        title : `发布人`,
        dataIndex: `${item_name}.poster`,
        align: `center`,
      },
      {
        title : `浏览量`,
        dataIndex: `${item_name}.browse_num`,
        align: `center`,
      },
    ],
    travel_resource:[
      {
        title: `资源标题`,
        dataIndex: `${item_name}.travel_resource_title`,
        align: `center`,
      },
      {
        title: `其他内容`,
        dataIndex: `${item_name}.other_content`,
        align: `center`,
      },
      {
        title: `类型`,
        dataIndex: `${item_name}.type`,
        align: `center`,
        render :(text)=>{
          let newName = '';

          switch (text){
            case  'consulate':
              newName = "领事馆";
              break;
            case  'tourism':
              newName = "旅游局";
              break;
            case  'airline':
              newName = "航空公司";
              break;
            case  'travel':
              newName = "旅行社";
              break;
          }
          return newName;
        }
      },
    ]
  }
}